#ifndef NETWORKSETTINGS_H
#define NETWORKSETTINGS_H

#include <QDialog>
#include <QDialogButtonBox>
#include <iostream>
#include <cstring>
#include <QDebug>

using namespace std;

namespace Ui {
class networksettings;
}

class networksettings : public QDialog
{
    Q_OBJECT

public:
    explicit networksettings(QWidget *parent = nullptr);
    ~networksettings();

    string IPAddr;
    int Port;
    string YourName;
    bool isServer;

private slots:
    void on_buttonBox_accepted();
    char * StringToCharArr(string str);

    void on_buttonBox_rejected();

    void on_buttonBox_helpRequested();

private:
    Ui::networksettings *ui;
};

#endif // NETWORKSETTINGS_H
